/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.ruralLibrary.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 资源
 *
 * @author pig
 * @date 2023-10-31 14:34:33
 */
@Data
@TableName("resource")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "资源")
@NoArgsConstructor
@AllArgsConstructor
public class ResourceEntity extends Model<ResourceEntity> {

    private static final long serialVersionUID = 1L;


	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long resourceId;
    private Long type;

	/**
	* 资源名称
	*/
    @Schema(description="资源名称")
    private String resourceName;

	/**
	* 作者
	*/
    @Schema(description="作者")
    private String author;

	/**
	* 简介
	*/
    @Schema(description="简介")
    private String briefIntroduction;

	/**
	* 出版社
	*/
    @Schema(description="出版社")
    private String press;

	/**
	* 大类id
	*/
    @Schema(description="大类id")
    private Long dataTypeId;

	/**
	* 中图法id
	*/
    @Schema(description="中图法id")
    private Long bookTypeId;

	/**
	* 浏览量
	*/
    @Schema(description="浏览量")
    private Long pageView;
	@Schema(description="封面")
    private String cover;
    private String status;

	@Schema(description="创建时间")
	private LocalDateTime createTime;
	@TableField(exist = false)
	private Page page;

	/**
	 * 资源审核id
	 */
	@Schema(description="资源审核id")
	private Long resourceAuditId;
}
